package cn.iocoder.yudao.module.alipay.controller.app.lianlian;

import cn.iocoder.yudao.framework.common.pojo.CommonResult;
import cn.iocoder.yudao.module.alipay.controller.app.alipayorder.vo.AlipayOrderCreateReqVO;
import cn.iocoder.yudao.module.alipay.controller.app.lianlian.vo.LianLianOrderCreateReqVO;
import cn.iocoder.yudao.module.alipay.service.linalian.LLOrderService;
import cn.iocoder.yudao.module.alipay.service.linalian.LLOrderServiceImpl;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.validation.Valid;

import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;

@Tag(name = "联联通相关 - 联联通订单")
@RestController
@RequestMapping("/lianlian/order")
@Validated
public class LianLianOrderController {


    @Resource
    private LLOrderService llOrderService;

    // TODO 联联通相关 - 联联通订单

    @PostMapping("/create")
    @Operation(summary = "创建联联订单")
    public CommonResult<Object> createOrder(@Valid @RequestBody LianLianOrderCreateReqVO createReqVO) throws Exception {
        return success(llOrderService.createOrder(createReqVO));
    }

}
